package com.rqbl.controller;


import com.rqbl.entity.Userstatus;
import com.rqbl.service.UserstatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author bruce
 * @since 2024-07-19
 */
@Controller
@RequestMapping("/userStatus")
public class UserstatusController {

    @Autowired
    private UserstatusService userstatusService;

    /**
     * 实现连表查询
     * @return
     */
    @RequestMapping("/getStatusByUidAndBid")
    @ResponseBody
    public Userstatus getStatusByUid(Integer uid,Integer bid){
        return userstatusService.getStatusByUidAndBid(uid,bid);
    }
}
